//
//  MLAPropertyVC.m
//  MagicLampApp
//
//  Created by Zheng on 2018/12/18.
//  Copyright © 2018 zheng.magic.lamp.app. All rights reserved.
//

#import "MLAPropertyVC.h"
#import "MLAPropertySubletVC.h"
#import "MLAPropertyRepairVC.h"

@interface MLAPropertyVC ()

@end

@implementation MLAPropertyVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self configTitle:@"我的物业"];
    
    self.titlesArr = @[@"报修",@"转租"];
    [self.tableView reloadData];
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    [super tableView:tableView didSelectRowAtIndexPath:indexPath];
    if (indexPath.row == 0) {
        CX_Log(@"报修");
        MLAPropertyRepairVC *repairVC = [[MLAPropertyRepairVC alloc] init];
        [self.navigationController pushViewController:repairVC animated:YES];
    } else if (indexPath.row == 1) {
        CX_Log(@"转租");
        MLAPropertySubletVC *subletVC = [[MLAPropertySubletVC alloc] init];
        [self.navigationController pushViewController:subletVC animated:YES];
    }
}
@end
